import {adminUrl} from "@/utils/baseUrl.js"
import request from '@/utils/request'

// 创建学籍信息异动
export function createStudentChange(data) {
  return request({
    url: adminUrl + '/collegebase/student-change/create',
    method: 'post',
    data: data
  })
}

// 更新学籍信息异动
export function updateStudentChange(data) {
  return request({
    url: adminUrl + '/collegebase/student-change/update',
    method: 'put',
    data: data
  })
}

// 删除学籍信息异动
export function deleteStudentChange(id) {
  return request({
    url: adminUrl + '/collegebase/student-change/delete?id=' + id,
    method: 'delete'
  })
}

// 获得学籍信息异动
export function getStudentChange(id) {
  return request({
    url: adminUrl + '/collegebase/student-change/get?id=' + id,
    method: 'get'
  })
}

// 获得学籍信息异动分页
export function getStudentChangePage(query) {
  return request({
    url: adminUrl + '/collegebase/student-change/page',
    method: 'get',
    params: query
  })
}

// 导出学籍信息异动 Excel
export function exportStudentChangeExcel(query) {
  return request({
    url: adminUrl + '/collegebase/student-change/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
